package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.core.domain.entity.BusinessSysUnit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BusinessSysUnitMapper;
import com.ruoyi.system.service.IBusinessSysUnitService;

/**
 * 业务系统-1Service业务层处理
 * 
 * @author ess
 * @date 2021-10-18
 */
@Service
public class BusinessSysUnitServiceImpl implements IBusinessSysUnitService 
{
    @Autowired
    private BusinessSysUnitMapper businessSysUnitMapper;

    /**
     * 查询业务系统-1
     * 
     * @param id 业务系统-1主键
     * @return 业务系统-1
     */
    @Override
    public BusinessSysUnit selectBusinessSysUnitById(Long id)
    {
        return businessSysUnitMapper.selectBusinessSysUnitById(id);
    }

    /**
     * 查询业务系统-1列表
     * 
     * @param businessSysUnit 业务系统-1
     * @return 业务系统-1
     */
    @Override
    public List<BusinessSysUnit> selectBusinessSysUnitList(BusinessSysUnit businessSysUnit)
    {
        return businessSysUnitMapper.selectBusinessSysUnitList(businessSysUnit);
    }

    /**
     * 新增业务系统-1
     * 
     * @param businessSysUnit 业务系统-1
     * @return 结果
     */
    @Override
    public int insertBusinessSysUnit(BusinessSysUnit businessSysUnit)
    {
        return businessSysUnitMapper.insertBusinessSysUnit(businessSysUnit);
    }

    /**
     * 修改业务系统-1
     * 
     * @param businessSysUnit 业务系统-1
     * @return 结果
     */
    @Override
    public int updateBusinessSysUnit(BusinessSysUnit businessSysUnit)
    {
        return businessSysUnitMapper.updateBusinessSysUnit(businessSysUnit);
    }

    /**
     * 批量删除业务系统-1
     * 
     * @param ids 需要删除的业务系统-1主键
     * @return 结果
     */
    @Override
    public int deleteBusinessSysUnitByIds(Long[] ids)
    {
        return businessSysUnitMapper.deleteBusinessSysUnitByIds(ids);
    }

    /**
     * 删除业务系统-1信息
     * 
     * @param id 业务系统-1主键
     * @return 结果
     */
    @Override
    public int deleteBusinessSysUnitById(Long id)
    {
        return businessSysUnitMapper.deleteBusinessSysUnitById(id);
    }
}
